package com.idudiao.sc.common.core.validator;

import com.idudiao.sc.common.core.validator.constraints.Identity;

import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;

/**
 * 证件号码校验逻辑
 *
 * @author songyinyin
 * @since 2019/2/27 9:58
 */
public class IdentityValidator implements ConstraintValidator<Identity, String> {

    @Override
    public void initialize(Identity constraintAnnotation) {

    }

    @Override
    public boolean isValid(String value, ConstraintValidatorContext context) {
        return false;
    }
}
